﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200051B RID: 1307
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class FCBMHIGCMHL : IMessage<FCBMHIGCMHL>, IMessage, IEquatable<FCBMHIGCMHL>, IDeepCloneable<FCBMHIGCMHL>, IBufferMessage
	{
		// Token: 0x170010EB RID: 4331
		// (get) Token: 0x06003B20 RID: 15136 RVA: 0x000A2BC5 File Offset: 0x000A0DC5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<FCBMHIGCMHL> Parser
		{
			get
			{
				return FCBMHIGCMHL._parser;
			}
		}

		// Token: 0x170010EC RID: 4332
		// (get) Token: 0x06003B21 RID: 15137 RVA: 0x000A2BCC File Offset: 0x000A0DCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return FCBMHIGCMHLReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170010ED RID: 4333
		// (get) Token: 0x06003B22 RID: 15138 RVA: 0x000A2BDE File Offset: 0x000A0DDE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return FCBMHIGCMHL.Descriptor;
			}
		}

		// Token: 0x06003B23 RID: 15139 RVA: 0x000A2BE5 File Offset: 0x000A0DE5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FCBMHIGCMHL()
		{
		}

		// Token: 0x06003B24 RID: 15140 RVA: 0x000A2BED File Offset: 0x000A0DED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FCBMHIGCMHL(FCBMHIGCMHL other) : this()
		{
			this.type_ = other.type_;
			this.displayValue_ = other.displayValue_;
			this.id_ = other.id_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06003B25 RID: 15141 RVA: 0x000A2C2A File Offset: 0x000A0E2A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FCBMHIGCMHL Clone()
		{
			return new FCBMHIGCMHL(this);
		}

		// Token: 0x170010EE RID: 4334
		// (get) Token: 0x06003B26 RID: 15142 RVA: 0x000A2C32 File Offset: 0x000A0E32
		// (set) Token: 0x06003B27 RID: 15143 RVA: 0x000A2C3A File Offset: 0x000A0E3A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MissionSyncRecord Type
		{
			get
			{
				return this.type_;
			}
			set
			{
				this.type_ = value;
			}
		}

		// Token: 0x170010EF RID: 4335
		// (get) Token: 0x06003B28 RID: 15144 RVA: 0x000A2C43 File Offset: 0x000A0E43
		// (set) Token: 0x06003B29 RID: 15145 RVA: 0x000A2C4B File Offset: 0x000A0E4B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint DisplayValue
		{
			get
			{
				return this.displayValue_;
			}
			set
			{
				this.displayValue_ = value;
			}
		}

		// Token: 0x170010F0 RID: 4336
		// (get) Token: 0x06003B2A RID: 15146 RVA: 0x000A2C54 File Offset: 0x000A0E54
		// (set) Token: 0x06003B2B RID: 15147 RVA: 0x000A2C5C File Offset: 0x000A0E5C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Id
		{
			get
			{
				return this.id_;
			}
			set
			{
				this.id_ = value;
			}
		}

		// Token: 0x06003B2C RID: 15148 RVA: 0x000A2C65 File Offset: 0x000A0E65
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as FCBMHIGCMHL);
		}

		// Token: 0x06003B2D RID: 15149 RVA: 0x000A2C74 File Offset: 0x000A0E74
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(FCBMHIGCMHL other)
		{
			return other != null && (other == this || (this.Type == other.Type && this.DisplayValue == other.DisplayValue && this.Id == other.Id && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06003B2E RID: 15150 RVA: 0x000A2CD0 File Offset: 0x000A0ED0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Type != MissionSyncRecord.None)
			{
				num ^= this.Type.GetHashCode();
			}
			if (this.DisplayValue != 0U)
			{
				num ^= this.DisplayValue.GetHashCode();
			}
			if (this.Id != 0U)
			{
				num ^= this.Id.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06003B2F RID: 15151 RVA: 0x000A2D47 File Offset: 0x000A0F47
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06003B30 RID: 15152 RVA: 0x000A2D4F File Offset: 0x000A0F4F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06003B31 RID: 15153 RVA: 0x000A2D58 File Offset: 0x000A0F58
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Id != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.Id);
			}
			if (this.DisplayValue != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.DisplayValue);
			}
			if (this.Type != MissionSyncRecord.None)
			{
				output.WriteRawTag(80);
				output.WriteEnum((int)this.Type);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06003B32 RID: 15154 RVA: 0x000A2DCC File Offset: 0x000A0FCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Type != MissionSyncRecord.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.Type);
			}
			if (this.DisplayValue != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.DisplayValue);
			}
			if (this.Id != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Id);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06003B33 RID: 15155 RVA: 0x000A2E3C File Offset: 0x000A103C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(FCBMHIGCMHL other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Type != MissionSyncRecord.None)
			{
				this.Type = other.Type;
			}
			if (other.DisplayValue != 0U)
			{
				this.DisplayValue = other.DisplayValue;
			}
			if (other.Id != 0U)
			{
				this.Id = other.Id;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06003B34 RID: 15156 RVA: 0x000A2EA0 File Offset: 0x000A10A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06003B35 RID: 15157 RVA: 0x000A2EAC File Offset: 0x000A10AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 16U)
					{
						if (num != 80U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.Type = (MissionSyncRecord)input.ReadEnum();
						}
					}
					else
					{
						this.DisplayValue = input.ReadUInt32();
					}
				}
				else
				{
					this.Id = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04001744 RID: 5956
		private static readonly MessageParser<FCBMHIGCMHL> _parser = new MessageParser<FCBMHIGCMHL>(() => new FCBMHIGCMHL());

		// Token: 0x04001745 RID: 5957
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001746 RID: 5958
		public const int TypeFieldNumber = 10;

		// Token: 0x04001747 RID: 5959
		private MissionSyncRecord type_;

		// Token: 0x04001748 RID: 5960
		public const int DisplayValueFieldNumber = 2;

		// Token: 0x04001749 RID: 5961
		private uint displayValue_;

		// Token: 0x0400174A RID: 5962
		public const int IdFieldNumber = 1;

		// Token: 0x0400174B RID: 5963
		private uint id_;
	}
}
